package base.sort;

public class BubbleSort {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int nums [] = {1,8,2,9,10,5,0,4,6,7,3};
		
		for (int i = 0; i < nums.length; i++) {
			for (int j = nums.length - 1; j >= i ; j--) {
				System.out.println(nums[0]);
				if(nums[i] < nums[j]){
					
					int tmp = nums[i];
					nums[i] = nums[j];
					nums[j] = tmp;
				}
			}
		}
		
		for (int i = 0; i < nums.length; i++) {
			System.out.println(nums[i]);
		}
	}
	
}
